home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 21
/
Cream of the Crop 21 (Terry Blount) (October 1996).iso
/
comm
/
pirch32.zip
/
PIGLATIN.PIL
< prev
next >
Wrap
Text File
|
1996-07-22
|
462b
|
19 lines
{ usage: /runscript [piglatin] <text message> }
{ probably will want to make an alias like
- piglatin:/runscript [piglatin] *1
}
$target := '';
$source := *1 ;
while strlen($source) > 0 do
begin
$word := strtoken($source);
$c := strcopy($word,1,1);
if strpos(strupper($c),'AEIOU') = 0 then
begin
strdel($word,1,1);
$word := $word+$c+'a';
end;
$target := $target + $word+' ';
end;
command('/msg ',$audience,' pirch latin: ',$target);